<template>
  <div id="tabbar">
    <van-tabbar
      active-color="#ff734c"
      route
      inactive-color="#333" >
      <van-tabbar-item to="/home" icon="home" icon-prefix="icon">首页</van-tabbar-item>
      <van-tabbar-item to="/cate" icon="category" icon-prefix="icon">分类</van-tabbar-item>
      <van-tabbar-item to="/cart" :badge="$store.state.cart.number" icon="gouwuche1" icon-prefix="icon">购物车</van-tabbar-item>
      <van-tabbar-item to="/user" icon="shouye" icon-prefix="icon">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
}
</script>
<style lang="scss" scoped>
#tabbar{
  /deep/ .icon{
     font-size: 22px;
  }
}

</style>
